import { defineStore } from "pinia"
export const useHeaderStore=defineStore('header', {
    state() {
        return {
            breadcrumbs:["报表管理"],
            drawer:false,
            userImg:"",//用户头像
            userName:""//用户名字
        }
    },
    getters: {
            getUserImg(state){
                return state.userImg
            },
            getUserName(state){
                return state.userName
            }
    },
    actions: {
            clearBreadcrumbs(){
                    this.breadcrumbs=["报表管理"]
            }
    }

})